package com.lagou.demo03.service;

import com.lagou.demo03.dao.ClassStudentQueryDao;
import com.lagou.demo03.dao.StudentQueryDao;
import com.lagou.demo03.factory.ClassStudentQueryDaoFactory;
import com.lagou.demo03.factory.StudentQueryDaoFactory;
import com.lagou.demo03.model.Student;

import java.util.List;

public class ClassStudentQueryService {
    private ClassStudentQueryDao classStudentQueryDao;
    public ClassStudentQueryService(){this.classStudentQueryDao = ClassStudentQueryDaoFactory.getClassStudnetQueryDao();}
    /**
     * 自定义成员方法实现根据参数指定的Student对象来调用DAO层实现信息查询功能
     */
    public List<Student> classStudnetQueryService(String queryClassStudent){
        return classStudentQueryDao.classStudentQuery(queryClassStudent);
    }
}
